package com.winhc.net.enums;


public enum CategoryIds {
		bannerId	("1"),
		newsId("2"),
		patnerId	("3"),
		lawFirmId	("4");
	
	public final String code;
	CategoryIds(String code) {
		this.code = code;
	}
	public static CategoryIds getEnumByCode( String code ){
		for ( CategoryIds e : values() ) {
			if( e.code.equals(code) ){
				return e;
			}
		}
		return null ;
	}
	
}